﻿using MqttAnalyze.Data.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MqttAnalyze.Data.Blls
{
    public interface IMqttDataBLL
    {
        /// <summary>
        /// 获取模板列表
        /// </summary>
        /// <returns></returns>
        public DataResult GetMsgTemplateList();

        /// <summary>
        /// 保存消息模板
        /// </summary>
        /// <param name="tpl"></param>
        /// <returns></returns>
        public DataResult SaveMsgTemplate(MqttMessageTemplateTb tpl);

        /// <summary>
        /// 删除模板
        /// </summary>
        /// <param name="tplId"></param>
        /// <returns></returns>
        public DataResult RemoveMsgTemplate(string tplId);

        /// <summary>
        /// 获取订阅的topic
        /// </summary>
        /// <returns></returns>
        public DataResult GetMsgCategoryList();

        public DataResult SaveMsgCategory(RecvTopicCategory topic);

        public DataResult SaveRecvMsg(MqttRecvMessage msg);

        public DataResult RemoveMsgCategory(string catId);
    }
}
